package main

type Store interface {
    Write([]*Row) error
    GetTableDef() TableDefine
    GetPartition() Partition
    LastActiveTime() (int64, int64, int64) //open read write
    Query(string) (string, error)
    Delete(string) error
    QueryKeys(QueryCondition) ([]string, error)
    QueryValues(QueryCondition) (map[string]string, error)
    Open() error
    Close() error
    IsActive() bool
}

var DefaultStoreFunc = func(t TableDefine, p Partition, s string) (Store, error) {
	return NewRocksdbStore(t, p, s)
}

